package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 字段对象 sys_field
 * 
 * @author ruoyi
 * @date 2023-03-13
 */
public class SysField extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 标头 */
    @Excel(name = "标头")
    private String title;

    /** 菜单id(表) */
    @Excel(name = "菜单id(表)")
    private Long menuId;

    /** 映射字段(表中的实际字段名) */
    @Excel(name = "映射字段(表中的实际字段名)")
    private String reflexField;

    /** 上级字段id */
    @Excel(name = "上级字段id")
    private Long pid;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setMenuId(Long menuId) 
    {
        this.menuId = menuId;
    }

    public Long getMenuId() 
    {
        return menuId;
    }
    public void setReflexField(String reflexField) 
    {
        this.reflexField = reflexField;
    }

    public String getReflexField() 
    {
        return reflexField;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("menuId", getMenuId())
            .append("reflexField", getReflexField())
            .append("pid", getPid())
            .append("sort", getSort())
            .toString();
    }
}
